package com.demo.gulimall.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.io.Serializable;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * spu属性值
 *
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pms_product_attr_value")
public class ProductAttrValue implements Serializable {
	/** id */
	@TableId(type = IdType.ID_WORKER) // 老版本
    //@TableId(type = IdType.ASSIGN_ID) // 新版本
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`id`")
	private Long id;

	/** 商品id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`spu_id`")
	private Long spuId;

	/** 属性id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`attr_id`")
	private Long attrId;

	/** 属性名 */
	@TableField(value = "`attr_name`")
	private String attrName;

	/** 属性值 */
	@TableField(value = "`attr_value`")
	private String attrValue;

	/** 顺序 */
	@TableField(value = "`attr_sort`")
	private Integer attrSort;

	/** 快速展示【是否展示在介绍上；0-否 1-是】 */
	@TableField(value = "`quick_show`")
	private Byte quickShow;

}
